<UserControl x:Class="WPFExcelReport.DataGridMatrix"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions> 
        <DataGrid Grid.Row="1"  Name="left" RowBackground="Orange"  ColumnWidth="*"
                  AutoGenerateColumns="True" EnableRowVirtualization="True"
                  HeadersVisibility="Column" 
                  FontSize="12" 
                  ItemsSource="{Binding Path=SetData.ABPOS}"   
                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                  ScrollViewer.VerticalScrollBarVisibility="Auto" 
                  >
        </DataGrid>
        <DataGrid Grid.Column="1" Grid.Row="1"  Name="center" RowBackground="Yellow" ColumnWidth="*"          AutoGenerateColumns="True" EnableRowVirtualization="True"
                  HeadersVisibility="Column" 
                  FontSize="12" 
                   ItemsSource="{Binding vwABPOS}"   
                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                  ScrollViewer.VerticalScrollBarVisibility="Auto" />
        <DataGrid Grid.Column="2" Grid.Row="1" Name="right" RowBackground="Red" ColumnWidth="*" 
                           AutoGenerateColumns="True" EnableRowVirtualization="True"
                  HeadersVisibility="Column" 
                  FontSize="12" 
                    ItemsSource="{Binding vwABPOS}"    
                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                  ScrollViewer.VerticalScrollBarVisibility="Auto"  />
        <DataGrid Grid.Column="3" Grid.Row="1" Name="other" RowBackground="Blue" ColumnWidth="*"  
                           AutoGenerateColumns="True" EnableRowVirtualization="True"
                  HeadersVisibility="Column" 
                  FontSize="12" 
                  ItemsSource="{Binding vwABPOS}"   
                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                  ScrollViewer.VerticalScrollBarVisibility="Auto"  />
        <DataGrid Grid.Column="1" Name="top" RowBackground="Green" ColumnWidth="*"  
                           AutoGenerateColumns="True" EnableRowVirtualization="True"
                  HeadersVisibility="Column" 
                  FontSize="12" 
                   ItemsSource="{Binding vwABPOS}"   
                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                  ScrollViewer.VerticalScrollBarVisibility="Auto"  />
        <DataGrid Grid.Column="1" Grid.Row="2" Name="bottom" RowBackground="White" ColumnWidth="*" 
                           AutoGenerateColumns="True" EnableRowVirtualization="True"
                  HeadersVisibility="Column" 
                  FontSize="12" 
                  ItemsSource="{Binding vwABPOS}"   
                  ScrollViewer.HorizontalScrollBarVisibility="Auto"
                  ScrollViewer.VerticalScrollBarVisibility="Auto"  />
    </Grid>
</UserControl>
